package com.hznu.jspFinal.service;

import com.hznu.jspFinal.entity.Major;

import java.util.List;

/**
 * @author jamesZhan
 */
public interface MajorService {

    void insert(Major major);

    void delete(Integer id);

    void update(Major major);

    Major selectByPrimaryKey(Integer id);

    Major selectByName(String name);

    List<Major> selectAllMajor(Integer departmentid);

}
